import React from 'react'

// 引入组件
import RoomInfo from '@/components/Room/Info'
import RoomConfirm from '@/components/Room/Confirm'
// import RoomComment from '@/components/Room/Comment'
// import RoomPay from '@/components/Room/Pay'

//路由列表 二级路由列表
const list = [
  {
    path: 'info',
    component: RoomInfo,
  },
  {
    path: 'confirm',
    component: RoomConfirm,
    auth: true,
  },
  // {
  //   path: 'comment',
  //   component: RoomComment,
  // },
  //
  // {
  //   path: 'pay',
  //   component: RoomPay,
  //   auth: true,
  // },
]

//构建父级路由的组件结构
const Layout = () => <React.Router.Outlet />

//构建顶级路由结构
const RouterList = [
  {
    path: "/room",
    component: Layout,
    children: list
  }
]

export default RouterList
